package com.github.pig.admin.model.attendance;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxf
 * @since 2018-11-22
 */
@TableName("attendance_attachment")
public class AttendanceAttachment extends Model<AttendanceAttachment> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 管理主表ID
     */
    @TableField("theme_id")
    private String themeId;
    @TableField("attachment_name")
    private String attachmentName;
    /**
     * 附件类型 0图片 1文件
     */
    @TableField("attachment_type")
    private String attachmentType;
    private String url;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    @TableField("del_flag")
    private String delFlag;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getThemeId() {
        return themeId;
    }

    public void setThemeId(String themeId) {
        this.themeId = themeId;
    }

    public String getAttachmentName() {
        return attachmentName;
    }

    public void setAttachmentName(String attachmentName) {
        this.attachmentName = attachmentName;
    }

    public String getAttachmentType() {
        return attachmentType;
    }

    public void setAttachmentType(String attachmentType) {
        this.attachmentType = attachmentType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AttendanceAttachment{" +
        ", id=" + id +
        ", themeId=" + themeId +
        ", attachmentName=" + attachmentName +
        ", attachmentType=" + attachmentType +
        ", url=" + url +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
